// c++运算符 + 的重载的基本概念
#include <iostream>
using namespace std;

class A
{
public:
    //重载了运算符+
    const A &operator+(const A &b){return *this;}
};

int main(int argc, char const *argv[])
{
    A a,b;

    a + b;
    a.operator+(b);     //两句话等价

    return 0;
}
